package com.ktgj.service.service.impl;

import java.io.File;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.ktgj.common.core.text.UUID;
import com.ktgj.common.core.utils.DateUtils;
import com.ktgj.service.domain.VipImage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import com.ktgj.service.mapper.ViphallImagedescMapper;
import com.ktgj.service.domain.ViphallImagedesc;
import com.ktgj.service.service.IViphallImagedescService;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;

/**
 * 贵宾厅图文描述Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-09-03
 */
@Service
public class ViphallImagedescServiceImpl implements IViphallImagedescService 
{
    @Autowired
    private ViphallImagedescMapper viphallImagedescMapper;

    /**
     * 查询贵宾厅图文描述
     * 
     * @param imagedescId 贵宾厅图文描述ID
     * @return 贵宾厅图文描述
     */
    @Override
    public ViphallImagedesc selectViphallImagedescById(Long imagedescId)
    {
        return viphallImagedescMapper.selectViphallImagedescById(imagedescId);
    }

    /**
     * 查询贵宾厅图文描述列表
     * 
     * @param viphallImagedesc 贵宾厅图文描述
     * @return 贵宾厅图文描述
     */
    @Override
    public List<ViphallImagedesc> selectViphallImagedescList(ViphallImagedesc viphallImagedesc)
    {
        return viphallImagedescMapper.selectViphallImagedescList(viphallImagedesc);
    }

    /**
     * 新增贵宾厅图文描述
     * 
     * @param viphallImagedesc 贵宾厅图文描述
     * @return 结果
     */
    @Override
    public int insertViphallImagedesc(ViphallImagedesc viphallImagedesc)
    {
        viphallImagedesc.setCreateTime(DateUtils.getNowDate());
        return viphallImagedescMapper.insertViphallImagedesc(viphallImagedesc);
    }

    /**
     * 修改贵宾厅图文描述
     * 
     * @param viphallImagedesc 贵宾厅图文描述
     * @return 结果
     */
    @Override
    public int updateViphallImagedesc(ViphallImagedesc viphallImagedesc)
    {
        viphallImagedesc.setUpdateTime(DateUtils.getNowDate());
        return viphallImagedescMapper.updateViphallImagedesc(viphallImagedesc);
    }

    /**
     * 批量删除贵宾厅图文描述
     * 
     * @param imagedescIds 需要删除的贵宾厅图文描述ID
     * @return 结果
     */
    @Override
    public int deleteViphallImagedescByIds(Long[] imagedescIds)
    {
        return viphallImagedescMapper.deleteViphallImagedescByIds(imagedescIds);
    }

    /**
     * 删除贵宾厅图文描述信息
     * 
     * @param imagedescId 贵宾厅图文描述ID
     * @return 结果
     */
    @Override
    public int deleteViphallImagedescById(Long imagedescId)
    {
        return viphallImagedescMapper.deleteViphallImagedescById(imagedescId);
    }
}
